package com.example.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author :蕉绿
 * @Date : 2023/3/5 11:26
 * @Version : V1.0
 * @Description :
 */
@RestController
@RequestMapping("/user")
public class UserController {
    @RequestMapping("/hi")
    public String sayHi(String name) {
        return "hi" + name;
    }


    @RequestMapping("/hello")
    public String sayHello() {
        return "Hello!";
    }

}
